<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center">
                <div>ID</div>
            </th>
            <th class="text-center" width="25%">模块名称</th>
            <th class="text-center" width="20%">专业/科目</th>
            <th class="text-center" width="10%">模块类型</th>
            <th class="text-center" width="10%">预估素材数</th>
            <th class="text-center" width="15%">创建人</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody id="tbodyMaterial">
            <tr class="jqgfirstrow" role="row">
                <th class="text-center">
                    <div></div>
                </th>
                <th class="text-center" width="25%"></th>
                <th class="text-center" width="20%"></th>
                <th class="text-center" width="10%"></th>
                <th class="text-center" width="10%"></th>
                <th class="text-center" width="15%"></th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="10" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="mould : ${dataMap['list']}" th:attr="id='mould-'+${mould['id']}">
                <td class="text-center">
                    <input th:type="${#strings.isEmpty(selectType)}?'checkbox':${selectType}" class="i-checks" th:title="${mould['mouldName']}" th:value="${mould['id']}">
                </td>
                <td class="text-center" th:text="${mould['mouldName']}"></td>
                <td class="text-center">
                    <span class="pie" th:each="subject,index : ${mould['subjectList']}" th:text="${index.index} lt (${#lists.size(mould['subjectList'])}-1)?${subject.subjectName}+'/': ${subject.subjectName}">
                    </span>
                </td>
                <td class="text-center">
                    <samp th:if="${mould['mouldType']}==1">公共模块</samp>
                    <samp th:if="${mould['mouldType']}==2">私有模块</samp>
                </td>
                <td class="text-center" th:text="${mould['materialNum']}"></td>
                <td class="text-center" th:text="${#maps.isEmpty(mould['createUser'])}?'—':${mould['createUser']['ralName']}"></td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
</html>